package com.peter.design.pattern.adapter.demo.passport.adapterv2.adapters;

import com.peter.design.pattern.adapter.demo.passport.PassportService;
import com.peter.design.pattern.adapter.demo.passport.ResultMsg;

/**
 * @Auther: 肖冬
 * @Date: 2020/7/28 16:20
 * @Description:
 */
public abstract class AbstractAdapter extends PassportService implements ILoginAdapter {
    protected ResultMsg loginForRegist(String username,String password){
        if(null == password){
            password = "THIRD_EMPTY";
        }
        super.regist(username,password);
        return super.login(username,password);
    }
}
